package xin.marcher.module.rights.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import xin.marcher.module.common.domain.BaseDO;

import java.io.Serializable;

/**
 *
 */
@Data
@TableName("rights_permission")
public class PermissionDO extends BaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final Integer PERMISSION_TYPE_MUNU = 1;

    public static final Integer PERMISSION_TYPE_BUTTON = 2;

    /**
     * 父权限id
     */
    private Long parentId;

    /**
     * 权限名称
     */
    private String permissionName;

    /**
     * 权限编码
     */
    private String permissionCode;

    /**
     * 权限类型（1-菜单权限，2-按钮权限）
     */
    private Integer permissionType;

    /**
     * 序号
     */
    private Integer sequence;

}